package com.example.crossoriginserver.controller;

import com.example.crossoriginserver.bean.ResultBean;
import com.example.crossoriginserver.bean.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/testController")
public class TestController {


    @GetMapping("/getOk")
    public ResultBean getOk() {
        return new ResultBean("getOk");
    }


    @GetMapping("/getCookie")
    public ResultBean getCookie() {
        return new ResultBean("getCookie");
    }

    @GetMapping("/getHeader")
    public ResultBean getHeader() {
        return new ResultBean("getHeader");
    }


    @PostMapping("/postOk")
    public ResultBean postOk() {
        return new ResultBean("postOk");
    }


    @DeleteMapping("/deleteRequest")
    public ResultBean deleteRequest() {
        return new ResultBean("deleteRequest");
    }
}
